<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

use Tensent\SentAdmin\Http\Controllers\AuthController;
use Tensent\SentAdmin\Http\Controllers\AdminController;

Route::group('admin', function(){
    Route::get('/', AdminController::class.'@index');
    
    $authController = config('admin.auth.controller', AuthController::class);

    Route::get('auth/login', $authController.'@getLogin');
    Route::post('auth/login', $authController.'@postLogin');
    Route::get('auth/logout', $authController.'@getLogout');
    Route::get('auth/setting', $authController.'@getSetting');
    Route::put('auth/setting', $authController.'@putSetting');
});
